Page({
  data: {
    showUrl: "",
    canUse: true,
  },
  onLoad({platform}) {
    let app = getApp()
    app.setShareChannel(platform)
    // 全新Ipad
    let time = new Date().getTime()
    this.data.showUrl = `https://www.ddzuji.cn/topic/alipay/h5/brandNewIpad/index.html?id=${time}`;
  },
  onMessage(e) {
    e.detail.name && this.onSubscribeMessage()
  },
  // 订阅消息
  onSubscribeMessage() {
    my.requestSubscribeMessage({
      entityIds: [
        '1ad56d038bfe4bfabe91db8dfd703ce5',
      ]
    })
  } 
});
